package com.zzstm.eduorder.client;

import com.zzstm.commonUtils.CourseWebVOComment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-edu",fallback = EduClientImpl.class)
public interface EduClient {

    //定义调用的方法的路径
    //根据用户id获取课程信息
    @GetMapping("/eduservice/coursefront/getCourseInfoById/{courseId}")
    public CourseWebVOComment getCourseInfoById(@PathVariable String courseId);

}
